<template>
    <van-search
        v-model="search"
        shape="round"
        placeholder="请输入搜索关键词"
        @focus="toUrl"
        />
</template>

<script>
export default {
  data() {
    return{
      search:''
    };
  },
  methods:{
    toUrl() {
      this.$router.push({path:'/search'});
    }
  }
};
</script>